package com.jiangli.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {

    public static final int STATUS_正常=1;
    public static final int  STATUS_禁用=0;
    public static final int  STATUS_VIP=2;
    public static final int  STATUS_管理员=3;
    /**
     * 用户id
     */
    private Long id;
    /**

     * qq邮箱
     */
    private String openid;

    private String username;

    /**
     * 用户账号状态
     */
    //  0 禁用 1 正常 2 VIP用户 3 超级管理员
    private Integer status;
    /**
     * 年龄
     */
    private Integer age;
    /**
     * 身高
     */
    private Integer height;
    /**
     * 体重
     */
    private Float weight;
    /**
     * BMI值
     */
    private Integer bmi;
    //用户口味偏好 ["偏辣，偏咸"]
    private String flavorPreference;
    /**
     * 性别
     */
    private Integer sex;
    /**
     * 账号创建时间
     */
    private LocalDateTime createTime;

}
